FROM 192.168.10.79/chanpinzu/tomcat:8

ENV CATALINA_HOME /usr/local/tomcat
WORKDIR $CATALINA_HOME
ADD docker-start.sh bin
COPY disconf-web.war .
RUN cd bin && chmod 777 *.sh

RUN mkdir -p webapps/ROOT \
    && mv disconf-web.war webapps/ROOT \
    && cd webapps/ROOT \
    && unzip -q disconf-web.war \
    && rm -rf disconf-web.war

RUN mkdir -p /data/uploads

EXPOSE 8080
CMD ["docker-start.sh"]